import RouterView from "~/components/RouterView";

const TeacherStaffAre_Home = () => import('~/view/Teacher/TeacherStaffAre').then(m => m.default || m);
const TeacherStaffAre_Metting = () => import('~/view/Teacher/AttendanceTimeSetting/AttendanceTimeSetting').then(m => m.default || m);
const TeacherStaffAre_HolidaytiMesetting = () => import('~/view/Teacher/HolidayTimeSetting/HolidayTimeSetting').then(m => m.default || m);
const TeacherStaffAre_Attendancerules = () => import('~/view/Teacher/TeacherAttendanceRules/TeacherAttendanceRules').then(m => m.default || m);
const TeacherStaffAre_MyAttendance = () => import('~/view/Teacher/AttendanceRecord/MyAttendanceRecordData').then(m => m.default || m);
const TeacherStaffAre_AllAttendance = () => import('~/view/Teacher/AttendanceRecord/AttendanceRecordData').then(m => m.default || m);
const TeacherStaffAre_GroupAttendanceData = () => import('~/view/Teacher/GroupAttendanceData/GroupAttendanceData').then(m => m.default || m);
/**
 * 教职工考情管理 前缀-TeacherStaffAre
 */
export default [
    //首页
    {
        path: "/TeacherStaffAreHome",
        name: "TeacherStaffAreHome",
        component: TeacherStaffAre_Home,
    },
    //考勤系统设置
    {
        path: "/TeacherStaffAreHome",
        name: "TeacherStaffAreHome",
        component: RouterView,
        children: [
            //教职工考情时间设置
            {
                path: "Mesetting",
                name: "TeacherStaffAreMetting",
                component: TeacherStaffAre_Metting,
            },
            //假期时间设置
            {
                path: "HolidaytiMesetting",
                name: "TeacherStaffAreHolidaytiMesetting",
                component: TeacherStaffAre_HolidaytiMesetting,
            },
            //考勤细则设置
            {
                path: "TeacherStaffAreAttendancerules",
                name: "TeacherStaffAreAttendancerules",
                component: TeacherStaffAre_Attendancerules,
            }
        ]
    },
    //考勤记录
    {
        path: "/TeacherStaffAreAttendance",
        name: "TeacherStaffAreAttendance",
        component: RouterView,
        children: [
            //我的考勤数据
            {
                path: "MyAttendance",
                name: "TeacherStaffAreMyAttendance",
                component: TeacherStaffAre_MyAttendance,
            },
            //所有教职工考勤数据统计
            {
                path: "AllAttendance",
                name: "TeacherStaffAreAllAttendance",
                component: TeacherStaffAre_AllAttendance,
            },
            //部门人员考情数据统计
            {
                path: "GroupAttendanceData",
                name: "TeacherStaffAreGroupAttendanceData",
                component: TeacherStaffAre_GroupAttendanceData,
            }
        ]
    }
]
